package com.github.beihaifeiwu.myspring.http.feign;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by liupin on 2017/9/5.
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface FeignClient {
    /**
     * An absolute URL or resolvable hostname.<br>
     * whether or not a url is provided. Can be specified as property key, eg: ${propertyKey}.
     */
    String value() default "";

    boolean primary() default true;

    String qualifier() default "";

    // FeignBuilderConfigurer with provided name will be used to configure Feign.Builder
    String configurer() default "";

    boolean decode404() default false;
}
